package business

import (
	"github.com/gin-gonic/gin"
	api "ruoyi-go/app/admin/api/business"
	"ruoyi-go/utils/jwt"
)

func InitTProject(e *gin.Engine) {
	// 路由权限相关
	v2 := e.Group("business")
	{
		auth := v2.Group("")
		auth.Use(jwt.JWTAuthMiddleware())
		{
			// 查询
			auth.GET("/project/list", api.GetPageLimitTProject)
			// 添加
			auth.POST("/project", api.CreateTProject)
			// 修改
			auth.PUT("/project", api.UpdateTProject)
			// 删除
			auth.DELETE("/project/:ids", api.DeleteTProjectByIds)
			// 获取详情
			auth.GET("/project/:id", api.GetTProject)
		}
	}
} 